var ctx;
var status = false;
function setPayStatus(status){
	this.status = status;
}
function setCtx(ctx){
	this.ctx = ctx;
}
/**
 * 程序入口
 */
$(function() {
	if($("#payBill").val() == 1){
		gotoPayBill();
	}
});


function gotoGetMyBill(){
	window.location.href = ctx+"/propertyBill/getMyBill";
}


function gotoPayBill(){
	$('#first').load(ctx+"/propertyBill/getPayBillInfo");
}

function gotoBillRecords(){
	$('#first').load(ctx+"/propertyBill/propertyFeePaymentList");
}

function gotoBillDetail(billID) {
	var houseFullName = $("#houseName").val();
//	$('#first').load(ctx + "/propertyBill/propertyFeePaymentDetail?billID="+billID&"houseFullName"+houseFullName);
	$('#first').load(ctx + "/propertyBill/propertyFeePaymentDetail?billID="+billID);
}

function payBill(billId){
	layer.open({
		type: 2,
		title: '物业费',
		content: ctx + "/propertyBill/payFeeBill?billId=" + billId,
		skin: "house-add",
		area: ["600px","480px"],
		end: function(){
		}
	});
}

function aliPay(info){
	$('#returnAli').append(info);
}

function wxPay(){
	window.location.href = ctx + "/propertyBill/getMyBill"
}